function S = sumx(A);
%SUMX   Short-hand command to sum over 1st dimension of a N-D matrix (N>2)
%       and to squeeze it to N-1-D matrix.
% S = sumx(A) is equivalent to S=squeeze(sum(A,1))

S=squeeze(sum(A,1));
